talloc: split the handling of FLAG_POOL/FLAG_POOLMEM in _talloc_free_internal