Burnley left it right until the very death to beat bottom side Wolves and claim their first away points of the season.