Adds a missing KSTOP in monitor_cache_enter for the case when we abort trace building.
This was causing an assert failure in core/stats.c:361 'stop not matching TOS' in the code_api,opt_memory|client.events test, on Ubuntu 18.04 in Github CI.
Issue: #4953 (closed)