fix data race in evaluation of negative log marginal likelihood derivatives