Simple lock for making sure certain things happen before you call a function.