Release compile lock even when an error occurred
Merge branch 'compile_lock_finally' into devel