os, syscall: test Chtimes on directories, fix on Windows

Fixes issue 8090.

LGTM=alex.brainman
R=alex.brainman
CC=golang-codereviews
https://codereview.appspot.com/154020043