Merge "in finalize() methods, log warnings if db lock is going to be held."