Fix crash when download bz2 from http
Fix crash when download bz2 from http

Missed lock when reserve bigger buffer
Decompress thread will write to buffer, which already free

Signed-off-by: Frank Li <d9a81cb4fa8b4f356eefd38684e2f43f08dbec49@nxp.com>

NXPmicro/mfgtools,NXPmicro/mfgtools,NXPmicro/mfgtools