code: @Deprecated
      public boolean isLocked() {
          return createOperationExecutor().execute(new CurrentOpOperation(), ReadPreference.primary(), readConcern)
                         .getBoolean("fsyncLock", BsonBoolean.FALSE).getValue();
      }
docs: Returns true if the database is locked (read-only), false otherwise.
  
  @return result of the command execution
  @throws MongoException if the operation fails
  @mongodb.driver.manual reference/command/fsync/ fsync command