What: `CommandBuffer::add_completion_seen_handler`, a runtime extension with no Metal
counterpart. Its handlers run as the command buffer's transition to `Completed` or `Error`
runs, right after its status, error and GPU times are final, before its completed handlers
and before `wait_until_completed` returns. A transition with completion-seen handlers and no
completed handler runs where seen (`Transition::where_seen`, `Run::runs_where_seen`), on the
queue's waiter, as a plain one does: no handler-pool turn. Where the transition is posted (a
completed handler, an earlier transition of the queue in its context, a deallocator of the
program's held), the handlers run in it on the handler thread, so they keep the queue's commit
order against every completed handler. A wait in one for what has not happened is refused
with the new `DeadlockCause::CompletionSeenHandler`, as a submission handler's is, wherever it
runs. `Contexts::run_here` takes the predicate its caller may run: the waiters and the
scheduler (`exit_guard::serving_completion`) run where-seen items, any other thread plain
ones only.
Why: the consumer's per-command-buffer completion pays a handler-pool wake after the waiter
(about 100 us from an idle CPU on the RTX 5080 laptop, and its p90 tail). Its completed
handler is short and posts a record; moved into a completion-seen handler, the command buffer
finishes on the waiter with one wake fewer.
Order choice: the handler runs inside its transition, never ahead of it, so a command buffer's
completion-seen handler cannot run before an earlier command buffer's completed handler on the
same queue's context; it runs at the turn only where that context holds nothing else.
Counted: `WorkCounts::completion_seen_handlers_run` and
`completion_seen_handlers_where_seen`.
Verified (M3 Max, MoltenVK, under the GPU lock): `tests::completion_here` (the new
`a_completion_seen_handler_runs_where_the_completion_is_seen`: 20 of 20 ran on
`metal2vulkan-queue-wait-*`, status `Completed`, GPU end positive, own completion wait refused,
own scheduling wait returned; with a completed handler 0 of 20 where seen, each before the
completed handler), `tests::own`, `tests::contexts` (the new where-seen run_here test): 24
passed. Negative control: with completion-seen handlers making the transition not where-seen,
the new test fails (0 of 20). Workspace clippy (all targets, all features) and runtime clippy
under `--cfg m2v_gpu` clean. api_signatures blessed, docs/REFUSALS.md regenerated.
(cherry picked from commit bb7fd805045a9903a3a1ae06595e264ad771049c)