Commit aa9938973e1410c34500992ff304c131f6fde9b2

Con Kolivas 2013-11-05T09:08:52

Use only a trylock in flush queue to prevent deadlocks.