Fixed rp_(un)lock not being loaded.

Fixes #1459