Fixed multithreading issues with the AddressBook API