lock: introduce state to keep track of inheritance
This is part of a series that will allow locks to be inherited by subprocesses
in limited circumstances. In upcoming patches we will refer to this state.
ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\nOK.