NOC or release letter like it is called by some; is not a matter of locally hired/or expat.

It is a solely decision of the employer/company you work for.

If he/she/it wants to give the RL/NOC to you then that's good. Congrats

But if he/she/it decides not to give you one RL/NOC then sorry.

There is nothing in the law stating the RL/NOC "must be given. So in the end it is an employer/company decision to issue one.