A new study finds that an increasing number of surgeries — and the painkillers that follow — could derail recovery for those who once misused opioids.