updated threadlock to actually be a thread locking test