use Integer as key type of the lock map in *MockServices for better performance