fles: Rework gFile + gDirectory protection
Add gDirectory protection in any case even if directory is not changed. For some files gFile an gDirectory where only set back if file was opened. Restore the original values in any case ebven if not necessary.