Fix incorrect function specification

The function specification for `cloudi_service_terminate/2` was declared as a `-type` instead of as a `-spec`.