use lock counts to determine whether to decrease active transaction count on unlock
3 files changed