A magnetic-field-induced irreversible transition in geometrically frustrated antiferromagnetic TbBaCo4O7 with kagome and triangular lattices