Publicize async hook -- add IS_WPCOM check.

REST API: wrap publicize async hook in a IS_WPCOM check to make sure it
doesn't run in the context of Jetpack

Merges r106435-wpcom