string: add bson_strnlen() for systems without strnlen().