Wait for some time if Singleton isn't destroyed immediately
Summary: This diff introduces 5 seconds wait time to let other threads release Singleton which may be temporarily locked. This helps prevent most of "Singleton object alive after destruction" warnings in cases where weak_ptr API is used correctly. Abusive use of folly::Singletons, where dependencies between singletons are not properly defined will still cause a warning.
Test Plan: unit test
Reviewed By: chip@fb.com
Subscribers: trunkagent, folly-diffs@
FB internal diff:
D1808371
Signature: t1:
1808371:
1422487261:
573eb40b6a260e428d96be476659335250c7ea76