refs #1636: code cache cleaning when checkup.

 - Code caches are cleaned when checkup routine runs.
   Added public flush() into CodeCache object.