[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 Name Job ID Coverage
  Build
passed build_linux_36 #173959
docker-build

00:19:31

65.0%
passed build_linux_37 #173960
docker-build

00:16:37

65.0%
passed build_macosx_36 #173957
macosx

00:21:55

65.0%
passed build_macosx_37 #173958
macosx

00:22:19

65.0%