Bug 841145 - use MOZ_SHUTDOWN_CHECKS to control what we do with late writes. r=vladan.