RT C support lib: UT code cleanup
mt::mutex: added timed trylock & deferred unlock

bool mt::mutex::trylock(double ) allows for trying to lock a mutex
while blocking the caller up to certain time (based on pthread_mutex_timedlock).
mt::deferredunlock class and associated unlockatend macro allow for
automation of mutex unlocking at end of scope.