basic netbsd ksem init and destroy with tests