prevent closing modal during upload

http://manage.dimagi.com/default.asp?113695
This makes me nervous. How confident are you that it is not possible for the upload to stop/finish and leave the dialog in a state that it cannot be closed? That is, stop or finish through some channel where `self.allowClose` does not get reset to true.