`GitHub Actions / Analyze #includes in source files` keeps reporting that the include shouldn't be present in the file. The reason is that we use FMT with version >10, so the fragment of the code that uses the include is not compiled. We move the include to a place where it's used, which should fix the warnings. Closes scylladb/scylladb#19776