Build dof constraints on semilocal elements

This proably creates an efficiency issue (iterating over semilocal elements isn't currently cheap) and I'll explore faster ways to get things right, but this is the best way I've come up with so far to correct a parallel AMR regression without reintroducing the parallel ParsedFEMFunction BC incompatibility.