src/graph_{ident,instance}.[ch]: Implement getting the mtime from instances.