removed some mutex usage and made the Lock public
removed some mutex usage and made the Lock public