s3-lib: Fix conversion of lib/events.c to modern tevent names