Minor improvement.

Eliminated the closure in CheckLockAndEnlist methods, lambda
can now be compiled as a static method, no allocation.