core: Adding locks in case of gluster hosts

If the host being added/removed belongs to a gluster enabled cluster,
an exclusive lock will be acquired on the cluster.

Change-Id: If9d4fec2fafd5f9f32521025da301f8b07b6e713
Signed-off-by: Shireesh Anjal <sanjal@redhat.com>