[kernel] Fix for non-timeout waitqueue errors in mutex_acquire_timeout

This fixes mutex_acquire_timeout for builds with MUTEX_CHECK in-case of non-timeout errors from waitqueue.