Release lock when page cache is closed twice.