#10072. Fixed filtering_stream::size() is not const.

- Some of the functionality including size() have been moved to class chain_client in chain.hpp hence the fix in chain.hpp