Fix for parent class traits and parent traits that do not get booted.

Very similar to https://github.com/laravel/framework/pull/4684.
If you're including code from another source, @taylorotwell might require to made it clear and ensure that it's compatible with Laravel own license. Just if it's relevant.