Fixed subtle multithreading issues with objective pointers