fix uncatched error with missing polkit. Closes: #5955

I believe inproc is faster, and maybe it can be used under posix platforms? Maybe the best is to initialize the type of sockets depending on the platform.
Yeah, I will change the comment to something else, but I missed this during the original merge. At least we're discussing it here.