Kabayan, we are exactly the same predicament (even from the same bank which is from HSBC to Mashreq). The only difference was that I managed to withdraw my gratuity before they even knew that I had already transfered to a new sponsor (which is not what they called "approved"). They were also very furious and thretened me. But I ignored their threats because I was continuously paying my loans and without any default.
But anyway I had managed to pay my loan in full to avoid any consequence that may arise.