Can you create a Wizard or sorcerer as player character, whose familar can open locks and disarmtraps?
No, not possible in NWN2.
I was asking for the OC, because I always had neeshka in my party but sometimes I wanted somebody else
but I had to have her because she is the only npc who can disarm traps and open locks.
Keep in mind that non-rogues can still learn these skills. If you have the "able learner" feat than any high-intelligence character should be able to keep them at half max ranks. If you keep thieves tools handy that should be able to crack all but the toughest locks and traps.
But another thing, is opening locks necessary?
I always thought it was, and obviously you get XP and cash, but is there ever anything important that can be only got by rogue skills?
I can't think of anything. Most damage spells (as well as arrows with elemental damage) can be used to destroy locked doors/chests, which will also destroy any traps on them at the same time. Traps on the ground can't be destroyed by spells, but can be discharged by running a summoned creature overtop.
There are a handful of repeatable traps that can't just be discharged and a couple situations where the trap is actually an alarm (thus disarming rather than discharging it allows you to proceed undetected), but there just aren't enough to say the rogue is indispensable. Convenient for sure, but certainly not indispensable.
Storm of Zehir probably makes the best use of the rogue out of any campaign, and its end-game is basically one big playground for the rogue.
That is why I hate to use bards in DnD. They can do everything, but there are little things they are very good in.
Curse Song is fricken awesome, and on top of all their other buffs and debuffs they make extraordinary party leaders. I ran a Bard in my first NWN2 OC playthrough and never so much as touched a weapon all campaign.