Add "flags" argument to librbd create methods

"flags" indicate the necessary infos about creating image, we use it here to
indicate whether this image is shared.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>