avoid duplicating get_nodedef_field() function
(both doors/gates and desk need it)

moved to init.lua and into homedecor.* namespace.