TRUNK-4031: locking mechanism for patient_identifier_type