BUGFIX: added extra unlock of mem cache lock when malloc fails.
BUGFIX: added extra unlock of mem cache lock when malloc fails.

emilcondrea/trousers,Distrotech/trousers,Distrotech/trousers,Distrotech/trousers,emilcondrea/trousers,emilcondrea/trousers