Fix several unreleased mutex locks that cause problem with processing calls