implemented the lock_c & trylock_c classes for locking and automatically unlocking a mutex.
implemented the lock_c & trylock_c classes for locking and automatically
unlocking a mutex.

mdg/snapl,mdg/snapl