[test][bcp] Add max iteration count as watchdog system

Without that some tests might stale indefinitely.
4 jobs for improve_two_loops_test in 22 minutes and 23 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
passed #173959
docker-build
build_linux_36

00:19:31

65.0%
passed #173960
docker-build
build_linux_37

00:16:37

65.0%
passed #173957
macosx
build_macosx_36

00:21:55

65.0%
passed #173958
macosx
build_macosx_37

00:22:19

65.0%