rpc: use BSON_ASSERT() macro instead of assert().