#iq.type is of type atom while locked_state_process_owner_iq function requires this parameter to be a binary. Could you please change the function headers as well. I'll test your changes again and merge it to the master branch if everything works fine.

BTW, I discovered the issue running muc_SUITE from esl/ejabberd_tests (make test)