Returns SynchronizedSecContextImpl.
Can be safely used when ctx is already an instance of
SynchronizedSecContextImpl
. Method performs the check and returns accordingly.