Prevent conflicting writing of data use lock flags