Fix workunit parent assignment issue.

Previously, even when passing in an explicit parent,
the workunit would get incorrectly set as the current workunit
for the calling thread.

Also make sure symlinking of ivy resolve jars happens
after we attempt to cache a classpath referring to those
symlinks.

Auditors: pl