Access block_device_mapping as dictionary instead of an Object.

We also need to update the block_device_mapping access when
removing snapshots during discard. This is similar to previous
commit because the bdm is now a diciontary instead of an sqlalchemy
object.

Change-Id: Id48d97052578aeda13314c0033b4f9ead8c234e8