Clear all active opcode caches

Second try, now based on master.

Sorry, I have no idea how to test this with a unit test.