lock form for the duration of form processing

this prevents another process from attempting to modify
the form between the first and second save