Temporarily revert threading changes as it introduce regression for UI testing
Fixlet for 64bits support
Make sure we don't call 'uniqueIdentifier' unless checking if the object in question actually supports that selector.