SERVER-13961 Remove dependency on the TLS client from LockState

Also clean-up some of the code under LockState, in preparation from moving
it under operation context.