Golfer Thomas apologises after using anti-gay slur at Sentry