Merge pull request #387 from luke-jr/bugfix_20130215b Bugfix: Duplicate stratum sessionid when copying work, to avoid double-free