Fixes a race condition in PersistenceWindowPool