ffs_softdep.c: add journal_check_space() helper
(cherry picked from commit 2126f103e0434db6ca34f0a5167bf5f03d4f02ad)