[Chapel Merge] Adjust cache-remote to avoid unnecessary assertion

Branch: refs/heads/main
Revision: fb44a64
Author: mppf
Log Message:

Merge pull request #18188 from mppf/cache-remote-assert

Adjust cache-remote to avoid unnecessary assertion failures

For https://github.com/Cray/chapel-private/issues/2358

Avoid assertion failure in ain_evict if we give up

If give_up_if_locked is set, it should be just fine
for the entry to be reserved by the current task,
since we just return anyway.

Reviewed by @ronawho - thanks!

Modified Files:
M runtime/src/chpl-cache.c

Compare: https://github.com/chapel-lang/chapel/compare/ddfe3788385f...fb44a6454f25