Added a few locks in teller.c but have some errors