Tests for AutoMutex.
Timeval conversion funcs changed to accepting references instead of returning by values.