A strike at Carlsberg's Northampton plant has been averted.