ContactsProvider: Fix polyphones in Chinese.

    Merge the resolution for polyphones in Chinese from https://github.com/ShenduOS/android_packages_providers_ContactsProvider/commit/d232513ba086fd0508def8ef0f7fb7d9cec5d171, thanks the Shendu OS team.

    Patch Set 2:
       Format the code style.

Change-Id: I84d5921ec43502bcfd2a1aefd4cae9fd0600c9d1
Contacts provider: add fb sync

Enables the abbility to contact fb contacts into
the normal contacts app

thanks to Paul O'Brien for the idea

and Xiao-Long Chen for the port to kitkat

Change-Id: I4efb5f512fce6d880cfa5719b4083026bd90bb2a
ContactsProvider: make lookupAndCacheId() synchronized

ContactProvider insert a new mimetype to database if
it's not found in db, but an error is observed that
column mimetype is not unique when inserting.
It's a concurrency error when multiple threads are
executing lookupAndCacheId() synchronously,
so we make this method synchronized to guarantee
that query and insert will be executed atomically.

Change-Id: I1d7006bb0dadef159be64525985a93d68f79704b
Signed-off-by: Leavitt Zhang <leavittz@nvidia.com>