Set sshare id and swork_id within the sshare mutex to avoid multiple share submits with the same id.