Control of turbulent and magnetohydrodynamic channel flows