[Caching] Added more precautions when something fails in the compilation (due to the caching lock mechanism)
Merge branch 'master' of https://github.com/tcew/OCCA2