Frame sets for generalized $B$-splines