Write an existing in-memory reflog object back to disk using an atomic file lock.
an existing reflog object
0 or an error code