locking order for DeleteQuery