server2: import code for handling initial
stat call of upstream file. this also
takes care of new version of mtime handling.