Do not allow the m_transforming_liquid queue to increase until all RAM is consumed

Fix memory leak #2