I think Kakashi may have used his MS to send the nail to another dimension. I can't imagine another way for him to get out of this situation sans epic save by another character.