netconsole: fix build when CONFIG_NETCONSOLE_DYNAMIC is turned on