cmd_send: showing freshly generated msg_id in debug output
fixed race condition with periodical flush and save_msg (see comment on [Mq_sqlite_persistence.save_msg] for details)