I suppose something in the std IO machinery is using ReentrantLock, if this is actually the correct cause? Although that's purely just a guess.
ReentrantLock