Removed useless set, fixed lock statement
Merge pull request #2 from ElapseTech/fix-servicelocator

Removed useless set, fixed lock statement