kalua: db: ticketcheck() fire deep mode for count_unused_logins() when maintenance_window_active