Fix common/lock test creating "750" path.
Fix common/lock test creating "750" path.

This was clearly an attempt to set the mode when creating a directory, but it never worked and instead created a "750" directory in the current working directory.

Detected when running in an environment where the current working directory was read-only.

pgbackrest/pgbackrest,pgbackrest/pgbackrest,pgbackrest/pgbackrest