Perhaps Vader always intended to betray the Emperor, and if he had successfully frozen Luke he would have taken him to another location where he could be unfrozen and convinced to join him before seeing the Emperor.
Alternately, Vader could have initially intended to turn Luke over to the Emperor, but changes his mind when Luke escapes the trap and he sees how strong Luke has become.