Shorten the fix for race condition in collection.put