Hello, everyone and Daniel!
While working on some stress suite I found the issue related to wayProcessSingleRelationByOid access rel->rd_smgr.
Patch with fix and test is attached (it is self-explanatory and pretty simple).
Best regards,Mikhail.