Add Lock when assetic write files