CA-117628: allow LVM metadata updates when running through plug-in

This patch uses the LVM configuration file that allows metadata updates when
running LVM commands on the master through the plug-in. In addition,
this patch introduces checks on the return value of a few functions.

Although this commit is not required for fixing the issue, it is still
important we were previously ignoring the result of it detected the
actual error much later on.