[PATCH v2 0/3] Rework main and side threads interaction in rpc