fix mistypes; fix number of parameters for bson_mutex_init