The macbook should still be usable if you wipe the OS and replace it with Linux. Still, that shouldn't be necessary, considering this is a problem that Apple created.
Isn't activation lock part of the firmware, not macOS? It might work on an older Intel Mac with a T2 chip (you can jailbreak those, entertainingly enough), but probably not on the ARM ones.