librados: add *_command() variants that allocate the result w/ malloc

These are helpful for commands that may have large results and are
expensive to process and/or transfer because retrying very inefficient.
The caller is expected to free(3) the result.

Signed-off-by: Sage Weil <sage@inktank.com>