Fix issue in check_locks action.

Previsouly, locks on transaction wasn't considered. Locks on "virtualxid" are
explicitly exluded from results.