sctp: enclose pre-init static function in between ifdef USE_SCTP

- it is not used otherwise and some compilers can throw warnings
- reported by Juha Heinanen

(cherry picked from commit 68f511f4972b8ac294b7429aadb27b22f2dfd554)