made thread-safe version of multivariate normal