Cleaned up XRecord async runloop sental variable thread safety.
Moved around a cleaned up some of the mutex locks.