Barclay was evading real life conflict and pressure for sure, but also doing erotic power play with holo-versions of his crewmates... I think that last part was an early taste of our current deepfake porn reality 😬
Either way, Lower decks made it clear that into the 2380s, cleaning out the holodeck biofilters was still the worst job on a starship:
People really use it for that?
Oh yeah. It's mostly that.