This switches builtin_wait from waiting on jobs in the active job list, to waiting on the wait handles. The wait handles may be either derived from the job list itself, or from saved wait handles from jobs that exited in the background. Fixes #7210