Make delay and avalon_send_task use nmsleep.