Merge "memory_replay: fix pthread_create error checking."