Add HHVM hookups for folly::Singleton

Summary: Originally this was part of D1404231, but split out when that
diff was reverted to allow the public folly repo to catch up with the
internal one.

This also converts the AsyncMysql library to use folly::Singleton
instead of a Meyers singleton.

Reviewed By: akhi

Differential Revision: D1457868