Secure a bit more the os operations
Merge pull request #2042 from chaen/rel-v6r12_FIX_sandboxLock

[v6r12] Secure sandbox cleaning process