add locking capability to XFormInstance
Merge pull request #90 from dimagi/locking

add locking capability to XFormInstance