Fix retro-compatibility of SetGapTapPha and add mutex