Spin-locality of higher-spin theories and star-product functional classes