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