Add lock to "order" until the end of the transaction