Uuugh. Took me until today to understand that pulling a window down on the Android 12 app switcher locks it so it can't be closed - and pulling down again unlocks...
For some reason this has only occasionally happened by accident up to now, and while I usually managed to do the unlock, I thought it was by tapping the small lock icon (in reality I probably happened to do enough of a swipe to trigger the change)...