commit/cc-mode: acm: Fix bug in the state cache mechanism. Remove 'BOD "strategy". Refactor.