add lock to protect threads & simply test the pool