Resolve blockage isssue (found by german, thibaud)

Delegating apam instance creating for a thread in order not to block ipojo