re-wrote how objects get locked while threaded, still not working though. I don't know what I'm doing wrong here.