Marginal turbulent magnetohydrodynamic flow in a square duct