add option to lock the classword

this way teachers can't change it after it has already been set
this is useful for Geniverse which uses the classword for linking
various systems together, so if it changes this linking breaks.