Replace head_block_num with get_chain_info
Replace head_block_num with get_chain_info

chain::head_block_num() can only be called from application thread.
EOSIO/eos,EOSIO/eos,EOSIO/eos,EOSIO/eos,EOSIO/eos