Piccole aggiunte sui mutex con il file locking