Second managed_file upload field fails with "An unrecoverable error occurred"
I'm the OP: This is not a full answer, but a fix:

Forcing the session to start with $_SESSION['something'] = 1; in the form build seems to cure this problem.

If you can provide better answers please do.