Improved itensor::printf to always immediately flush buffer.