display: Clean up get_timed_login_details

Make it properly log itself as a GdmDisplay method, and use
local variables to ensure that callers can pass NULL.