Remove inreplace in mongo-c