TRUNK-4032 locking mechanism for person_attribute_type

[https://tickets.openmrs.org/browse/TRUNK-4032] added a locking mechanism for person attribute types