SERVER-14425 Extract LockManager queue management logic to methods

Makes the code cleaner to read and reduces repeated sections.
SERVER-14425 Move LockManager out of the newlm namespace
SERVER-14425 RIP LockState