[Distributed runtime] Release queues when releasing intermediate result partition
[Tests] Fix TaskManagerTest
Fix UnionBufferReadertest
Fix checkstyle violations
[Tests] Fix mock environment tests
[Tests] Fix BufferTest