This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Using NetBeans with perforce is a pain and most of wizards like new project template will fail at unexpected place because it cannot write to some file. This often leaves sources in the state of middle of transaction. Typically - project infrastructure wants to access nbproject/* files + build.xml - apisupport needs to update layer.xml and Bundle.properties files
Sorry, you would need to solve this at a more general level by having an integration module for Perforce that acquires locks on demand when FileObject write methods are called.