Mod $p$ local-global compatibility for $\mathrm{GSp}_4(\mathbb{Q}_p)$ in the ordinary case