Removed unnecessary lock

This lock shouldn't be needed.