Add portable timed_mutex and recursive_timed_mutex.