deadlock and prod_cons