Remove opreator bool for routine type

Signed-off-by: LAN Xingcan <lanxingcan@gmail.com>
Use routine<> other than std::function<void()>

Signed-off-by: LAN Xingcan <lanxingcan@gmail.com>