kernel32: Replace the format_message() helper macro with a static function.