Move `MillisToTimeval()` from `netbase.{h,cpp}` to
`src/util/system.{h,cpp}`.
This is necessary in order to use `MillisToTimeval()` from a newly
introduced `src/util/sock.{h,cpp}` which cannot depend on netbase
because netbase will depend on it.
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/20788 | core#20788]] [1/5]
https://github.com/bitcoin/bitcoin/pull/20788/commits/aa17a44551c03b00a47854438afe9f2f89b6ea74