Prevent document update conflict from starting multiple surveys simultaneously

http://manage.dimagi.com/default.asp?137919

The only change here was the use of CriticalSection(), the rest of the changes are just indenting / formatting.
"heh, nice try at wrapping but fail!" ... @dimagimon is merciless