I'm not sure what you mean by "protected"; nor am I sure what you mean by "locked".
If you mean you're using an .htaccess fille, of course. You can create multiple .htaccess files and put them somehwere above public_html. Then use a cron job to move them to the directory you want protected or unprotected, at the time you want them protected or unprotected.
Jeff