what about overlaying the folder.jpg with a padlock if the folder is protected?
using this solution makes a config option obsolete
^ wouldn't work, because auto generated folder image might contain nudity so you could still see some nudity underneath the padlock.