Prevents students from accidentally changing their enrollment on login (LMS-2773)

skip tests if not run in lms
fix 400s from change_enrollment causing 404s (LMS-6625)
in some cases we do want that redirect url
Merge pull request #4171 from edx/adam/fix-lms-2773

Prevents students from accidentally changing their enrollment on login (...