Resolve a small restore issue found while writing a test for issue #4288.

* subversion/libsvn_wc/adm_crawler.c
  (svn_wc_restore): Avoid unneeded db call.
  (report_revisions_and_depths): Don't try to restore nodes below a
     non-directory. This wil fail if one of the ancestors is a file.

* subversion/tests/cmdline/update_tests.py
  (update_replace_obstruction): New partial test for issue #4288, showing the
    restore issue.
  (test_list): Add test


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1431957 13f79535-47bb-0310-9956-ffa450edef68