Locking my thread won't make the problem go away