memory: replace lambda with function attribute with ordinary functions
memory: replace lambda with function attribute with ordinary functions

gcc9 no longer allows placing function attributes on lambdas (only
type attributes are accepted). This is unfortunate but standards
conforming.

Replace with a call to an ordinary function, that can have the
attribute.

syuu1228/seastar,avikivity/seastar,avikivity/seastar,dreamsxin/seastar,dreamsxin/seastar,scylladb/seastar,dreamsxin/seastar,avikivity/seastar,cloudius-systems/seastar,syuu1228/seastar,syuu1228/seastar,cloudius-systems/seastar,scylladb/seastar,cloudius-systems/seastar,scylladb/seastar