Utilize a lock to prevent more than one JPA transaction at a time