MarkovInequality

Results 2 issues of MarkovInequality

Fix #4137 When training both TI and HN, the progress bar callback can call [set_current_image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/master/modules/shared.py#L192) in a separate thread. This poses a problem when "Move VAE and CLIP to RAM...