Fixing issue #159 where another resource was locked when creating a new
one.