Update QtSingleApplication and QtLockedFile

Fixes stale temp file issues, and is needed for blocking support.
Set an "active" role for the menubar icon on Mac

Fixes #1730