[TEST] Log where locks are created from if they are still open on close()
Revert "[TEST] Log where locks are created from if they are still open on close()"

This reverts commit 7eb8b0d0c0b2ef3adcfd7b1e10ea0ca9a50c1adc.
[TEST] Fix testRandomDirectoryIOExceptions to wait for green on reopen & add more assertions
Fix P/C assertions for rewrite reader

Inner queries must be rewritten as soon as a weight is pulled ie. must
be non-null.

Closes #5731