Add regress covering the recently fixed NULL pointer deref in vn_writechk().This program also help uncovering a locking error in spec_setattr() fixed byvisa@.