[minor] Add deprecation warning for sync middlewares returning `false`