[QtSingleApplication] Correctly remove lockfile only on app close.

Fixes regression when multiple instances of browser were opened.