Modeling the multiwavelength detection of protoclusters: I. An excess of submillimeter galaxies in protocluster cores