[KARAF-3075]AdminService should avoid writing file in case just read instance status
(cherry picked from commit 32f47f4c22c2a520e9ea8cd97b70c1a776c5da6c)

Conflicts:
	main/src/main/java/org/apache/karaf/main/Main.java
(cherry picked from commit 4359a8fd56016981f81d0c4d696c540892d59766)
[KARAF-3075]AdminService should avoid writing file in case just read instance status