Linear stability of spherically symmetric and wormhole solutions supported by the sine-Gordon ghost scalar field