Cancel gets wait() and wait_timeout(timeout). cancel() now wakes every
thread blocked in either, through a Condvar beside the flag;
is_cancelled() and cancel() keep their signatures.
The never-finishing preview jobs in the Filter Gallery, Select and Mask
and Content-Aware Fill stories, and the Filter Gallery trial's render,
looped on is_cancelled() with 10 ms to 1 s sleeps. They now block in
wait(), or in wait_timeout() for the fill story's one-hour job.
Tests in queue_tests.rs: wait_timeout reads the flag, a thread blocked
in wait returns once another thread cancels, and a running job blocked
in wait ends when the queue drops its key.
`QueueOptions::default_lanes` called `std::thread::available_parallelism`
on every call. On Linux that call opens /proc/self/cgroup and the cpu.max
file of every cgroup level, so each call costs several file opens and
reads. `ThumbnailOptions::new` calls it, and the glyphs panel's
`glyph_painter` builds a `ThumbnailOptions` for every visible cell in
every pass, so the panel made about 5,000 such calls per frame.
The lane count is now computed once and kept in a `OnceLock`. wasm32
still returns 0.