Add assert in mac os x proc list function. #3725

Assert that size passed to realloc() is non-zero, as suggested in code
review.