Fixed bin dump producing garbage data

in multithreaded environments.

The scenario causing the erroneous behaviour:

- first thread starts to do bin dump
- second thread clears cache
- first thread dumps invalid data
- bin load crash
updated package.xml