Producer-Consumer problem in Elixir