[RemoteInspection] Fix format of dumped spare bit mask (#73231)
Even with `std::hex`, the `uint8_t` values are being printed as characters, not hex
values. This change casts the value to `int`, which results in the hex representation
being properly printed.