Gradient: callback thread-safety