Fix chol pthread bug buffer overflow