Added test for #1025: future::wait_for/wait_until do not remove callback