kernel.sem causes short write error that breaks application of other values in the file

Change-Id: Ie0a22342a3aa507565f93c1830c4485920aeb09e
Fix vanirnice

Change-Id: Ide1d70df854310d1e7867deaedf7a19599101a54