SERVER-15541 Move yield.cpp out of the LockManager library and fix warning

Yielding should be should be part of the query library. Also rename the
Yield class in order to avoid warning on Windows.