Fixed crash, needed to clear caches when writing instructions
into the code cache. Flow of execution seems to be different for
native vs DR.