make tryLock actually return a bool