-stable review patch. If anyone has any objections, please let us know.---------------------

From: Bjorn Steinbrink <B.Steinbrink@gmx.de>

Fix two races in the timer stats lookup code. One by ensuring that theinitialization of a new entry is finished upon insertion of that entry.The other by cleaning up the hash table when the entries array is cleared,so that we don't have any "pre-inserted" entries.