Ensure that submitBackground enqueues at least one task
patch by Oleg Anastasyev; reviewed by jbellis for CASSANDRA-5554
fix memorySize bugs and cleanup
patch by Carl Yeksigian and jbellis for CASSANDRA-5564
merge from 1.2