I guess you would need to create the complete LIKE pattern (including wildcards) in code before binding it as a parameter.
Var strPlaceholder As String = "%" + ObfuscatedPathParent
("SELECT id FROM Lockers WHERE id <> ? AND ObfuscatedPathParent LIKE ?", theId, strPlaceholder)