Fix usage of module_suspend/resume when not using RPC methods.

Without this patch, any resume call will segfault or send back an RPC message,
while not doing RPC.
Merge branch 'master' of github.com:gfriloux/maelstrom