TRUNK-4032

fix for https://tickets.openmrs.org/browse/TRUNK-4032  [ locking mechanism for person_attribute_type ]