[RDY] Speed up mch_delay unit test.

The current test of `mch_delay` costs us a whole second, since the used timer function has a granularity of one second. Using Lua's `socket` library we can get the time in milliseconds and thus improve the test.