re-placed TWFunc::SetPerformanceMode inside the BUILD_TWRPTAR_MAIN ifdef

Change-Id: Iaf152ee74947b11b6e58be4a8c0c483b0c0b517a