Merged revisions 326209 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
  r326209 | mjordan | 2011-07-05 08:23:57 -0500 (Tue, 05 Jul 2011) | 7 lines
  Updated filestream destructor to block until move is complete when cache is used
  When a cache directory is used, the process is forked and a mv command is executed to move the temporary file to the permanent location.  This caused issues with voicemail, where a race condition occurred when the parent expected the file to be in the permanent location prior to the mv command completing.  The parent process is now blocked until the mv command completes.
  (closes issue ASTERISK-17724)
  Reported by: Adiren P.
  Tested by: mjordan
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@326210 
65c4cc65-6c06-0410-ace0-
fbb531ad65f3