Ev2 shims: Only close our directory batons if we've opened them.
Ev2 shims: Only close our directory batons if we've opened them.

* subversion/libsvn_delta/compat.c
  (drive): Only close directory batons if we've opened them, thus preventing
    segfaults.


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1198131 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion