Check for encryption before loading key

Now we check if we need an encryption key
before we try to get it.

Fixes #338: bls always fails when scsicrypto-sd plugin is loaded

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>