Pathwise anticipating random periodic solutions of SDEs and SPDEs with linear multiplicative noise