If the docs say surgery, suck it up and enjoy the drugs... and then DO YOUR GODDAMN PT for as long, and longer, than they tell you to. A surgery won't help much if you don't strengthen up the muscles afterwards.
I had a problem with dislocations for a few years and eventually the ball part of the joint formed a depression called a hills-sachs lesion, basically means that when the joint dislocates it gets jammed out of place and its fucking hard to get back in. Went under the knife two winters ago and it's all good now, although I still can't throw a baseball like I used to be able to.