libs/sys: workaround for Lua number overflow in ipv6 route metrics