Fix incorrect method signature of awaitInactivity()

- Related: #2084