[kqueue] Fixed wrong memory management in mon_kqueue.c

Tester: Artyom A Anikeev <anikeev@ut.mephi.ru>