[PATCH] setpgid: should work for sub-threads