
Go back to the old man in the cell and finish the conversation. Beating the thug unlocks the next dialogue. The door at the end of the corridor becomes available after the old man hands over the reward.
If you are still behind the bars
On a new open-world character, speak to the old man first. At the end of the conversation he gives you a stick, food, water and a medkit. The bars open so you can reach the thug. This gets you out of the cell; the door to the outside comes later.
Source: Official open-world guide
How to tell the hand-in worked
After the fight the old man comments on the racket. Look for five coins and a leather vest. You can equip the vest from your backpack before leaving. Once the reward is yours, walk to the door at the end of the corridor. There is no need to fight another thug.
Source: Official open-world guide
Sources
Interfaces and rules can change. Check the official pages above for current requirements.