fix race condition in logs_command_factory test

Signed-off-by: Matthew McNew <mmcnew@pivotal.io>