When creating nodelinks from python to a group extension socket, freed
memory could be used.
This is because since rB513066e8ad6f, just created links could be
removed and recreated again if extension sockets are involved. This is
not a problem in itself, but this links 'tonode' was accessed - we can
use other available 'tonode' though, this should be the same.