GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4682
Fixes "permission denied" return when are already process group / session leader. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4678
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4675