Added a system locking wrapper with a counter that potentially fixes possible glitches