Use apr_pool_pre_cleanup_register for reslist cleanup