add target check for aggregate handler

ARMCI_INIT_HANDLE enables aggregate by default, but some of them are
only used for a single target in every wait call. This patch uses flush
for a target specified hanlder instead of flush_all call.
add epoch type info in win_allocate