First safe the merchant, don't befriend him, after the second fisit to the castle you will find him again in that room. Then fail the stat check, you will get it.
Is there a better way to describe it, I'm a little confused, Do I have to lose and come back in a future route or like return to the castle later...