Fix threadedfilebuf to implement streambuf::overflow().