Allow passing options to password_hash().

Refs #3899