Fixed several memory leaks

1. Free main_reactor on clean
2. Free hashmap root node
3. Invalid zval_add_ref() usage leads swoole_client leak