Implement thread-safe randomness in module_udp

Comparmentalize aesrand into data structure, uses the new user argument
to make_packet