JCR-2326: jcrvdxxxxxxxxxx.tmp temporary files are not deleted after uploading a file

Fix description:
- Release all pointers targeting to tmp file then Garbage Colllecter clean it.