Fix locking issue with LuceneIndexWriter failing to acquire write.lock during package upload.