Make raven.handlers.logging.SentryHandler#_get_targetted_stack accept `record`

Make raven.handlers.logging.SentryHandler#_get_targetted_stack accept `record` to be able to process the stack according to the logging message level or other record properties (in handler subclasses).