Test for persistence window pool brick lock issue

See commit 723933f275bc2f366ad82ce95784fb18d29852fd for the commit that
fixed the issue, also description about the fix there. This is a test to
verify that behaviour.