Add lock transaction methods

I'm about to try out roach, and I was looking at code/commits and thought Doors could use transactions.

This was a good way to get more familiar with the code before using it, so far so good.