refs.c: add transaction.status and track OPEN/CLOSED