Add check_mode support to authorized_key. Fixes #7300

Signed-off-by: Hector Acosta <hector.acosta@gmail.com>