Use of inhibitors for scale control in brine-producing gas and oil wells