Correctly set the folder protection status when loading subfolders (see #4)