[BUGFIX] Support BCrypt validation of hashes with different cost
In the current implementation of the BCryptHashingStrategy a password is
hashed with crypt and the hash contains the algorithm and parameters
with the salt that was used to hash the password.
This change updates the validation to also take the cost from the stored
hash and allow changes to the cost setting.
Releases: master, 2.0