After 2 days of searching, i stopped working on this module.
It seems that there is a hidden bug in the latest Anope release (1.7.13).
I tried the older module cs_forbidunreg.c and its exact the same. I dont get PANIC! messages anymore, services just quit. No error message, no segfault message, no backtrace log, nothing. Anope just quits.
I think i'll have to wait until the next version goes public