Locking base classes

Loki file: Threads.h