Parse plain old Java locks from the thread dump