Make mnesia:wait_for_tables timeout configurable
merge bug25678 into default