test: fix a crash in milter-agent's constructor

smfi_main() calls milter_quit() internally. milter_quit() frees mutex
that is used in milter-agent's constructor. If milter-agent is created
after the test, milter-agent's constructor uses freed mutex and crashes.