job: Use AIO_WAIT_WHILE() in job_finish_sync()