add locking capability to XFormInstance

Pretty straightforward. Will be used in case processing to keep competing processes from processing a form twice.