Use a backup in case pthread_mutex_timedlock isn't available