lock form for the duration of form processing

this prevents another process from attempting to modify
the form between the first and second save

depends on https://github.com/dimagi/dimagi-utils/pull/183