CMBMThreading: Added read/write lock class