Updated sync_timed_queue to match sync_pq's API.