convert check_if_fd to work on syscallrec's instead of childno's