bson: don't rely on platform INT_MAX for maximum bson size.