Add a mutex locker class for global use