Bugfix: Duplicate stratum sessionid when copying work, to avoid double-free