[Fix #282] Tear down Flycheck before buffer reversion

Stops any current syntax check, clears the error state and removes all
temporary files, because buffer reversion is going to reset the whole
buffer state anyway.