lock/unlock method don't check for errors