Flag to indicate records missing from PAS.
Rework locking mechanism so that it works for new records (using advisory locks).
Fix address bug.
Release patient lock before updating GP and practice.
Modifications to make PasService testable.
Fix error when no CB.
PasService tests.
Tidy up tests.
Merged patient detection.