mingw_rmdir: set errno=ENOTEMPTY when appropriate