Main window: Lock file based on fcntl module.
Merge pull request #22 from ArseniyK/one_instance

Main window: Lock file based on fcntl module.