Ps. Also run with the debug flag set, ZBDEBUG = TRUE; Not that we output much debug info, but you may be lucky. Since postgres work with pool.c this sounds strange, though pool.c of course may not test all cases. Please double check how you call libzdb if you have not already done so first.
Maybe you have a dbmail repository we can look at for the implementation?