Enforced log coordinator demotion after a write is discarded.

Review: https://reviews.apache.org/r/18488