synch: make allocation error printing helper more flexible
synch: make allocation error printing helper more flexible

Instead of always printing the same reason for the failure, allow the caller
to supply a reason.

Signed-off-by: Josef 'Jeff' Sipek <a620f141433c70aa9e43778305a6c68cbfadfb25@josefsipek.net>

jeffpc/libjeffpc,jeffpc/libjeffpc,jeffpc/libjeffpc,jeffpc/libjeffpc