Added some reasoning as to why no deadlock occurs with two locks.