ensure wait(Task) is always notified on task exit. fixes #3866
also rename on_exit to parent in jl_task_t for consistency with the julia type