Better yet, you can use GlideQuery, this way:
// GlideRecord's "gr.setForceUpdate(true)" can't be called from scoped apps.
// Use GlideQuery instead.
new global.GlideQuery(TABLE_NAME)
.forceUpdate()
.where(FIELD_NAME, VALUE)
....
Please try calling gr.update() twice.
couldn't get it to work by removing the first gr.update in the condition, must have them both.
the record will be updated once (only one time for those two calls)
var gr = new GlideRecord(TABLE_NAME);
gr.get(SYS_...