Don't use lock if we aren't threaded