Add ability to set staff lock from course outline

STUD-1851. @cahrens please review.

Sandbox available at http://studio.benmcmorran.m.sandbox.edx.org/course/edX/Open_DemoX/edx_demo_course
Probably. This method used to be inside a test case where preconditions were known, but that's not the case now.