Fixed some pessimistic locking issues; restricted delete if child entities were loaded with qualification