[fix] race condition in Shell#runcommand module of mcollective

Ready for review.

:warning: Don't accept before release.