Hmm, it seems upstream is a bit funny there. You can compile separate lockd as we do but it won't be loaded. If you check the .h file it states for the LVMLOCKD_SUPPORT undefined to inline those functions (see 'static inline') on the declarations. Unless I am mistaken this means for the compiler to actually put the code in the binary rather than issue follow up call for the function later on.