[PATCH AUTOSEL 5.0 142/262] perf trace: Check if the 'fd' is negative when mapping it to pathname