[FIX] account: avoid closing fiscalyear with unpost entries

As when closing fiscal periods, forbid to close a fiscal year with unposted entries.
Fixes #1194, opw 610784