(no-ticket) Make execute thread-safe.

Which makes executing commands in sinolpack thread-safe.

Change-Id: If1c4d1f03c26358b21a3e8387f1a47d97a95fdda
Merge "(no-ticket) Make execute thread-safe."