checkdir/perms test fails when /tmp is sticky

If the sticky bit is set on tmp, then the group on the tempdir is not set as expected. Then checkdir/perms fails.

Introduced by our tests for legacy/trac#11291 (moved) .