std.process.cleanExit: lock stderr before exiting

This makes it so that any other threads which are writing to stderr have
a chance to finish before the process terminates. It also clears the
terminal in case any progress has been written to stderr, while still
accomplishing the goal of not waiting until the update thread exits.
45b505c930Andrew Kelley committed on 5/28/2024, 3:56:49 AMparentc9587d3
1 file changedLine totals unavailable