Is there a way to tell if a record is locked by a workflow via SuiteScript? I have a map/reduce that gets work orders with specific criteria using N/search and then loops through them to update a value after performing some other actions. The problem is that the script fails to update the value, and that makes the work order appear in the next run of the map/reduce. If I could filter out the locked work orders, then I could tell my script not to process those.