In_memory_events: switch to records containing Lwt_condition.ts

This removes the clunky arrays of integers we had before.

Signed-off-by: David Scott <dave.scott@citrix.com>