ERT-530 common lock file: Fixed bug: ERT gui did not call enkf_main_free...

... on exit