Safe lock (2 resources)