Cdodge/disallow student state and progress writes on closed course

This short-circuit return seems like it might cause issues down the road for scenarios where the flag is set to true, but one of the conditions below is the use case which actually needs to be validated?