Removed my dumb spin locks

Realized that I was using what amounted to spin locks, which took 50-60%
CPU by themselves. Removed them and replaced them with Java Locks and
Conditions and await and signal.