ae.c: fix crash when resizing the event loop.
ae.c: fix crash when resizing the event loop.

See #6964. The root cause is that the event loop may be resized from an
event callback itself, causing the event pointer to be invalid.

JackieXie168/redis,JackieXie168/redis,JackieXie168/redis,JackieXie168/redis