Fix issue with WeaveRunnable running with the same instanceId on container restarts.

When a container get restarted, always picks an unused instanceId within a instanceId set.