Added wrapper class for Locks. Moved thread wrapper code into its own headers and cpp files