Low: libpe_status: refactor new internal function for getting end of resource name
This reduces code duplication between clone_strip() and clone_zero(), and will
have wider use later. This commit also makes those two functions assert on
error, as none of the callers check the return value for NULL.