replaced yield & block_given? inside define_method (because it didn't work)

... with explicit block parameter since the former does not work

Fix issue https://github.com/phatworx/devise_security_extension/issues/98