tdr: Remove dependency on lp_* so it can be used in both Samba 3 and