When starting a test, we are always in IBD because the timestamps on cached blocks are in the past. Usually, we solve that by generating a block at the beginning of the test.
That is clumsy and might even lead to other problems such as #15360 and #14446 (comment)
So fix that by getting rid of mocktime and always refreshing the last block of the cache when starting the test framework.
Should fix #14446