cherry pick upower1 API support for mate-session-manager