PLAT-484: ensure that "exc" is properly shared between upload threads

This branch is meant for solving a transient problem progressively, attempt by attempt. It should be kept open as long as the relevant ticket is not marked as solved.