Check that thread is running in MaskingInputStream