Revert "Fix special permissions on Solaris 10/sparc64 and FreeBSD"

This reverts commit 4ee16ec7ff833778a0f25a44322121d17367af61.

It fails on many platforms in Jenkins, presumably because support for
special permission bits is a bit uneven.