dirmmgr: Use a portability wrapper for struct timeval.