The problem is that I can't find a way to do so.
In fact, I can climb the ship again, but the cabin's door is closed and Guybrush won't go inside.
Moreover, the barrel with tar is still there and when I point at it, Guybrush says something like "I've had enough of this".