The nbt port and dgram port parameters only work in source4 code. This needs to be documented, and the parameters eventually removed for consistency.
Fixed in c253f956ef0b40a8d1d877acfd5da9d27ec0d0b4 for Samba 4.3