Added lock mode support to the org.opennms.core.criteria.Criteria API.
Used lock modes to lock rows for update to fix bug NMS-6392 where a database
deadlock is occurring when trying to issue an update to the
location_monitors DB table.