core: organize RemoveDiskCommand#getSharedLocks()

Extract some code to seperate methods in order to make the method more
concise and readable

Change-Id: If116452d24f838a9459ee97c88e7e49d13d0de3e
Signed-off-by: Arik Hadas <ahadas@redhat.com>