Remove the locks, they weren't necessary, and this helps to recover some of
the performance lost by having to un-optimize that function.