build: Don't assume we can set permissions on a directory

MSYS2 has enough of a Unixish environment to run Autotools, but
apparently not enough of a Unixish environment to have functional
permissions.

Closes: dbus#216
12 jobs for msys2-chmod in 7 minutes and 40 seconds (queued for 1 second)