Clean error paths in opendir and fd_opendir by only setting handle data on success.