xfs: fixes for 4.5-rc7

Changes:

o Only perform torn log write detection on dirty logs. This prevents
  failures being detected due to a clean filesystem being moved
  between machines or kernels of different architectures (e.g. 32
  -> 64 bit, BE -> LE, etc). This fixes a regression introduced by
  the torn log write detection in 4.5-rc1.