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>