Get rid of std::bind as this is not supported in C++98 unfortunately

Status Job ID Name Coverage
  Test
passed #12251
docker linux64
linux64_docker_ci

09:30

passed #12252
docker linux64
linux64_docker_cxx98_compat_ci

05:06

passed #12253
docker linux64
linux64_docker_minimal_ci

01:40

passed #12254
official windows64
windows64_msvc_ci

13:24