Use a spillbuf stream in BDB get_locks so that a temporary spool file is only opened if there are lots of locks.
Use a spillbuf stream in BDB get_locks so that a temporary spool
file is only opened if there are lots of locks.

* subversion/libsvn_fs_base/lock.c
  (spool_locks_info): Write to a stream instead of a file.
  (struct locks_get_args): Change file to stream.
  (txn_body_get_locks): Pass stream.
  (svn_fs_base__get_locks): Create a spillbuf stream instead of opening
   a file.


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

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