Fix sleep_on_lid_close on some systems