gluploadelement: Avoid race condition in propose_allocation().