Lock galleries when a linked assignsubmission is locked by the teacher