As Allah (swt) knows the future, He also knows that even if the door of guidance is open, the hypocrites will never choose it. His setting the seal upon their hearts is not an emotional act, but rather a logical response to the action of the person. That said, the Qur'an does not say that the seal is permanent.