Android's X on the picture-in-picture window only hid the window: the
practice kept running in the background, and opening Inbe again brought
it back. Java now flips a closed bit when the window closes while the
activity is stopped, and the frame ends the practice at once, keeping
what the exit prompt's Save keeps, stopping its background timer,
wake lock and notification, and reporting the route so the next frame
does not return to the practice.
Checked on the Moto (Android 9) with Wim Hof: the X ends the practice
within 0.1 s, the session notification goes away, Inbe reopens on
Practice, and the window's expand button still restores the practice.
Picture-in-picture keeps frames running while the activity is paused, so
the background practice timer and the frame both polled the same pending
sync. One applied the response while the other released it, which crashed
Inbe on a Pixel 3a when leaving the app during a practice. The frame and
the timer now take a pump lock and skip the exchange while the other
holds it. The session window test also waits for the app's first state.
Replace the remaining .kry and C application sources with Ziran modules,
move vendored dependencies to their current pointers, and add Ziran tests for
the ported hosts and policies.