Provide a way to disable checkpoint via environment variable

I'm 100% sure this isn't threadsafe, but I'm also 100% sure it wasn't threadsafe before.