debuginfo: Add a "no_debug" attribute that allows to exclude functions from debuginfo generation.

Fixes #15332.