stat: give directories write and execute permissions

Microsoft Windows ignores the read-only attribute on directories and
has no equivalent to the Unix execute permission on directories.
Treat all directories as writable and searchable.