Flag to indicate records missing from PAS.
Rework locking mechanism so that it works for new records (using advisory locks).