MDL-41940 files Option to limit legacy course files

Adding an option that prevents users from adding new files
or directories to legacy course files. Helps with weaning
users from them.