Maximal torsion-free subgroups of certain lattices of hyperbolic buildings and Davis complexes