When using export rather than backup, it appears that the noaccess lock is too restrictive and the export command cannot execute. I used sitelock readonly instead. That seemed to work fine for the export.
But careful, the import then failed with an error message indicating that a certain parent web not being present.
Conclusion: sitelock cannot be used with export.