[NET] netconsole: Use netif_running() in write_msg()