A minimal lockfile handler for Matlab.