[ASan] Better way to disable tests for functions unavailable on certain platforms