remove all asserts during critical section

the size of the critical section is reduced by only entering the critical
section right before the bind().