[BUFGIX] Throw exception if PackageStates.php is not writeable (Revision 1)

Change-Id: I6dbe4f52bb13bfeb893a88c0e235a1cdcf2cf441
Fixes: #53238
Releases: master, 2.1
Revision-Id: 8c2d221b472f5999d1ff67e037deb6125209f6ae