improved object locking and threads intersections semaphores for
connections