file locking support for netbsd