To unlock Joseph, you need to sleep in until there are only 16 days left in the game.
At that point a short cutscene will play. Once it finishes, head to the castle, and Joseph will be there waiting for you. Good luck!