Technology is taking jobs away from men—and reviving a pre-industrial version of masculinity