handle rpc/suspend_session in background thread on posix