[PATCH v2 3/3] scripts: Adapt mock-noinline.py to ATTRIBUTE_MOCKABLE