[PATCH 3/3] rpc: Rework rpc notifications in main and side thread