Issue #30: fixed ordering of mutex lock before smart buffer allocation
Issue #30: fixed ordering of mutex lock before smart buffer allocation

gift-surg/GIFT-Grab,gift-surg/GIFT-Grab,gift-surg/GIFT-Grab,gift-surg/GIFT-Grab