Added a lock over command response unpacking