* include/rpc/rpc.h: Declare thread variables with their correct