Main Window:lock file based on fcntl

This way dont matter exist lock_file or not. if sunflower crash and can't delete lock file another instanse can run anyway