Former NBA ref surrenders to charges he bet on games he officiated