added folder locking during encryption/ deryption