[hibernate-dev] HHH-6735 Performance improvements in flush loop and more