cope with race conditions at PID based stream identification