Synchronize smd commands

Add protection to smd api to make sure all smd
commands are sent sequentially.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Merge pull request #66 from KrasnikovEugene/smd_sync

Synchronize smd commands