Same problem as with atomics, was calling the wrong functions. Sorry I didn't catch this the first time, this particular issue isn't something I have managed to come across before.