fix race condition in ReentrantChannelTest